package com.hyz.pojo.asset;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author HGD
 * @date 2022/10/7 22:53
 */

public enum AssetStatus {
    /**
     * lock代表上锁
     * unlock代表未上锁
     * borrow代表资产借用
     * allocated代表资产调拨
     * retired代表资产报废
     * unassigned代表未分库
     * maintenance代表维修
     */
    UNASSIGNED(0, "未分库"),
    LOCK(1, "上锁"),
    IN_REPOSITORY(2, "库中"),
    SECONDMENT(3, "资产借调"),
    RETIRED(4, "资产报废"),
    MAINTENANCE(5, "资产维修");

    @EnumValue
    private final Integer key;
    private final String value;

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    AssetStatus(Integer key, String value) {
        this.key = key;
        this.value = value;
    }
}
